import { projects } from "../db";
import { ObjectId, Filter, Timestamp } from "mongodb";
import dayjs from "dayjs";

import * as db from "../db";
import { stats } from "../libs/stats";
import { IKanban } from "../models/project-detail";

/**
 * 查询看板列表
 * @returns
 */
export async function list(id: ObjectId) {
  const items = await db.kanban.find({ _id: id }).toArray();
  const total = items.length;

  return {
    items,
    total,
  };
}

/**
 * 创建看板
 * @param record
 * @returns
 */
export async function create(record: IKanban) {
 
}

/**
 * 删除看板
 * @param _id 看板id
 * @param uid: 当前用户id
 */
export async function remove(_id: string, uid: string) {
  
}

